<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input id="modelId" name="modelId" type="hidden"
								th:value="${modelId}">
							<input id="modelType" name="modelType" type="hidden"
								th:value="${modelType}">
							<input id="parentId" name="parentId" type="hidden"
								th:value="${pId}">
							<div class="form-group">
								<label class="col-sm-3 control-label">上级指标：</label>
								<div class="col-sm-8">
									<input id="" name="" class="form-control" type="text"
										th:value="${pName}" readonly>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">指标名称：</label>
								<div class="col-sm-8">
									<input id="quotaName" name="quotaName" class="form-control" type="text" required>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">指标描述：</label>
								<div class="col-sm-8">
									<textarea id="quotaDesc" name="quotaDesc" class="form-control" rows="3"></textarea>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">算分类型：</label>
								<div class="col-sm-8">
									<select data-placeholder="--请选择--" name="quotaType" id="quotaType"
                                        class="form-control chosen-select" tabindex="2" required>
                                        <option value="">--请选择--</option>
                                        <option value="1">加权</option>
                                        <option value="2">区间</option>
                                </select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">指标分数</label>
								<div class="col-sm-8">
								<input id="quotaScore" name="quotaScore" class="form-control" type="text" required>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">指标规则</label>
								<div class="col-sm-8">
								<input id="quotaRule" name="quotaRule"  class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
	                            <label class="col-sm-3 control-label">业务元数据：</label>
	                            <div class="col-sm-8">
	                                <select data-placeholder="--选择业务元数据--" name="busiId" id="busiId"
	                                        class="form-control chosen-select" tabindex="2">
	                                    <option value="">--选择业务元数据--</option>
	                                </select>
	                            </div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">说明：</label>
								<div class="col-sm-8">1.算分类型为”加权“时指标规则为系数（非0整数），计算方式：数量×系数，系数为空则以最大值为满分基数；<br/>
									2.算分类型为”区间“时指标规则格式：[数值],[分值]|...|[数值],[分值]  ~为无穷大。</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/app/ce/quota/add.js" th:src="@{/js/app/ce/quota/add.js}"></script>
</body>
</html>
